package cn.yeziji.forum.common;

import cn.yeziji.forum.config.YamlAndPropertySourceFactory;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 阿里云 oss
 *
 * @author gzkemays
 * @since 2022/3/17 11:58
 */
@Component
@PropertySource(
    value = "classpath:aliyun.yml",
    name = "aliyun.yml",
    factory = YamlAndPropertySourceFactory.class)
@ConfigurationProperties(prefix = "oss")
@Data
public class AliCloudOss {
  String accessKey;
  String securityKey;
  String saveRootPath;
  String savePath;
  String bucket;
  String endPoint;
  String returnUrl;
  String payBucket;
  String payEndPoint;
  String payReturnUrl;
}
